package com.smartum.mpr.client.services;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.smartum.mpr.shared.Category;
import java.util.List;

public abstract interface JobsServiceAsync
{
  public abstract void getCategories(AsyncCallback<List<Category>> paramAsyncCallback);

  public abstract void addCategory(String paramString, AsyncCallback<List<Category>> paramAsyncCallback);

  public abstract void editCategory(String paramString1, String paramString2, AsyncCallback<List<Category>> paramAsyncCallback);

  public abstract void deleteCategory(String paramString, AsyncCallback<List<Category>> paramAsyncCallback);

  public abstract void addSubCategory(String paramString1, String paramString2, AsyncCallback<List<Category>> paramAsyncCallback);

  public abstract void editSubCategory(String paramString1, String paramString2, AsyncCallback<List<Category>> paramAsyncCallback);

  public abstract void deleteSubCategory(String paramString, AsyncCallback<List<Category>> paramAsyncCallback);

  public static final class Util
  {
    private static JobsServiceAsync instance;

    public static final JobsServiceAsync getInstance()
    {
      if (instance == null)
      {
        instance = (JobsServiceAsync)GWT.create(JobsService.class);
      }
      return instance;
    }
  }
}